package com.caesar.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/app")
public class TestController {

    @RequestMapping("/speak")
    @ResponseBody
    public String sayHello() {
        return "Hello World!";
    }

    //测试方法
    @RequestMapping("/hello")
    @ResponseBody
    public String welCome() {
        return "You are welcome!";
    }

}
